<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/cj.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\index.html">All files</a> / <a href="index.html">src/components</a> cj.vue
    </h1>
    <div class='clearfix'>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
    &lt;div class="height100"&gt;
      &lt;van-uploader
	  class="mt-3"
	  :max-size="3 * 1024 * 1024"
	  :before-read="beforeRead"
	  @oversize="onOversize"
    multiple
     v-model="picurllist"
     :max-count="6"
     :before-delete="picurlDelete"
	&gt;
	  &lt;!-- &lt;van-button icon="manager-o" size="small" type="primary"&gt;更换头像&lt;/van-button&gt; --&gt;
	&lt;/van-uploader&gt;
&nbsp;
  &lt;!-- &lt;van-uploader v-model="fileList" multiple /&gt; --&gt;
&nbsp;
  &lt;!-- 剪裁图片组件 --&gt;
    &lt;van-popup
      class="bg-tran"
      v-model="showCropper"
      closeable
      position="top"
      :style="{ height: '100%' }"
    &gt;
      &lt;div class="flex-column-center height100"&gt;
        &lt;app-VueCropper
          ref="cropper"
          :img="option.img"
          :outputSize="option.outputSize"
          :outputType="option.outputType"
          :info="option.info"
          :full="option.full"
          :autoCropWidth="option.autoCropWidth"
          :autoCropHeight="option.autoCropHeight"
          :canMove="option.canMove"
          :canMoveBox="option.canMoveBox"
          :original="option.original"
          :autoCrop="option.autoCrop"
          :fixed="option.fixed"
          :fixedNumber="option.fixedNumber"
          :centerBox="option.centerBox"
          :infoTrue="option.infoTrue"
          :fixedBox="option.fixedBox"
          :high="option.high"
          :mode="option.mode"
        &gt;&lt;/app-VueCropper&gt;
        &lt;div class="popup_bottom"&gt;
          &lt;div class="bottom_item"&gt;&lt;span @click="cancelCropper"&gt;取消&lt;/span&gt;&lt;/div&gt;
          &lt;div class="bottom_item"&gt;&lt;span @click="rotateImage" class="font18"&gt;&lt;van-icon name="replay" /&gt;&lt;/span&gt;&lt;/div&gt;
          &lt;div class="bottom_item"&gt;&lt;span @click="getCropBlob"&gt;确定&lt;/span&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/van-popup&gt;
    &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
&nbsp;
<span class="cstat-no" title="statement not covered" >import { VueCropper } from 'vue-cropper'</span>
export default {
<span class="fstat-no" title="function not covered" >	data() {</span>
<span class="cstat-no" title="statement not covered" >		return {</span>
      picurl:[],
          picurllist:[],
			    showCropper: false, // 截图弹窗遮罩默认隐藏
	      	imageAccept: "/jpg,/png,/jpeg",
          imageFileName: '',
          option: {
		        img: '',
		        outputSize: 0.8,
		        info: false, // 裁剪框的大小信息
		        outputType: 'jpeg', // 裁剪生成图片的格式
		        canScale: false, // 图片是否允许滚轮缩放
		        autoCrop: true, // 是否默认生成截图框
		        autoCropWidth: window.innerWidth - 100 + 'px', // 默认生成截图框宽度
		        autoCropHeight: window.innerWidth - 100 + 'px', // 默认生成截图框高度
		        high: true, // 是否按照设备的dpr 输出等比例图片
		        fixedBox: true, // 固定截图框大小 不允许改变
		        fixed: true, // 是否开启截图框宽高固定比例
		        fixedNumber: [1, 1], // 截图框的宽高比例
		        full: true, // 是否输出原图比例的截图
		        canMoveBox: false, // 截图框能否拖动
		        original: false, // 上传图片按照原始比例渲染
		        centerBox: false, // 截图框是否被限制在图片里面
		        infoTrue: false, // true 为展示真实输出图片宽高 false 展示看到的截图框宽高
		        mode: '100% auto' // 图片默认渲染方式
		     },
		}
  },
&nbsp;
  components: {
      'app-VueCropper':VueCropper,
  },
&nbsp;
	methods: {
		// 上传文件过大
<span class="fstat-no" title="function not covered" >		onOversize() {</span>
<span class="cstat-no" title="statement not covered" >		  this.$toast('图片不能大于3M');</span>
		},
&nbsp;
		// 获取文件后缀
<span class="fstat-no" title="function not covered" >		getFileSuffix(fileName) {</span>
<span class="cstat-no" title="statement not covered" >		  return fileName.match(/\/\w+$/)[0].toLowerCase();</span>
		},
&nbsp;
		// 选择图片上传前操作，调起剪裁组件
<span class="fstat-no" title="function not covered" >		beforeRead(file) {</span>
<span class="cstat-no" title="statement not covered" >      console.log(file);</span>
<span class="cstat-no" title="statement not covered" >		  if (!this.imageAccept.includes(this.getFileSuffix(file.type))) {</span>
<span class="cstat-no" title="statement not covered" >		    return this.$toast('请上传 jpg/png 格式图片');</span>
		  }
<span class="cstat-no" title="statement not covered" >		  this.showCropper = true;</span>
<span class="cstat-no" title="statement not covered" >		  this.imageFileName = file.name;</span>
		  // 本地图片转成base64，用于截图框显示本地图片
<span class="cstat-no" title="statement not covered" >		  this.imageToBase64(file);</span>
    },
    // 将本地图片转化为Base64，否则vue-cropper组件显示不出要本地需要剪裁的图片
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >	    imageToBase64(file) {</span></span>
<span class="cstat-no" title="statement not covered" >	      let reader = new FileReader();</span>
<span class="cstat-no" title="statement not covered" >	      reader.readAsDataURL(file);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >	      reader.onload = () =&gt; {</span></span>
	        // 截图框中的图片
<span class="cstat-no" title="statement not covered" >	        this.option.img = reader.result;</span>
	      }
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >	      reader.onerror = function (error) {</span></span>
<span class="cstat-no" title="statement not covered" >	        console.log('Error: ', error)</span>
	      }
	    },
&nbsp;
	    // 确认剪裁并上传图片
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >	    async getCropBlob() {</span></span>
	      // this.$toast('上传中', 0);
<span class="cstat-no" title="statement not covered" >	      let formData = new FormData();</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >	      this.$refs.cropper.getCropData((data) =&gt; {</span></span>
            // console.log(data);
<span class="cstat-no" title="statement not covered" >             var that = this</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >             that.$api.post("/Upload/uploadcord",{'file':data}).then(res =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >               console.log(res);</span>
<span class="cstat-no" title="statement not covered" >                 if(res.code==1){</span>
<span class="cstat-no" title="statement not covered" >                    this.showCropper = false;</span>
                     // file.status = 'done';
                     // file.message = res.data;
                     // file.content = res.data;
<span class="cstat-no" title="statement not covered" >                     console.log(res.data);</span>
                     // that.yyzz =[{url: res.user.yyzz}];
<span class="cstat-no" title="statement not covered" >                     this.picurllist.push({url: res.data});</span>
<span class="cstat-no" title="statement not covered" >                     console.log(this.picurllist);</span>
                 }else{
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                   setTimeout(() =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >                     file.status = 'failed';</span>
<span class="cstat-no" title="statement not covered" >                     file.message = '上传失败';</span>
                   }, 1000);
                 }
             })
&nbsp;
&nbsp;
&nbsp;
&nbsp;
	        // 上传图片至服务器
	        // changeAvatar(formData)
	        // .then(res =&gt; {
	        //   if(res.code === 200){
	        //     this.$toast('更改头像成功');
	        //   } else {
	        //     this.$toast('上传失败');
	        //   }
	        // })
	        // .catch(err =&gt; console.error(err));
	      })
	    },
&nbsp;
	    // 旋转图片
<span class="fstat-no" title="function not covered" >	    rotateImage() {</span>
<span class="cstat-no" title="statement not covered" >	      this.$refs.cropper.rotateRight();</span>
	    },
&nbsp;
	    // 取消截图上传头像
<span class="fstat-no" title="function not covered" >	    cancelCropper() {</span>
<span class="cstat-no" title="statement not covered" >	      this.showCropper = false; // 隐藏切图遮罩</span>
<span class="cstat-no" title="statement not covered" >	      this.showPopup = true;</span>
	    },
&nbsp;
&nbsp;
      // 图片删除方法
<span class="fstat-no" title="function not covered" >       deleteimg(imgurl){</span>
<span class="cstat-no" title="statement not covered" >         var that=this;</span>
<span class="cstat-no" title="statement not covered" >         this.isloadImg = true;</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >         that.$api.get("/Upload/imgdelete",{'imgurl':imgurl}).then(res =&gt; {</span></span>
             // console.log(res);
<span class="cstat-no" title="statement not covered" >             Toast(res.msg);</span>
         });
       },
&nbsp;
      // 删除图片
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >      picurlDelete(file) {</span></span>
<span class="cstat-no" title="statement not covered" >        console.log(file);</span>
<span class="cstat-no" title="statement not covered" >          var that = this;</span>
<span class="cstat-no" title="statement not covered" >          var imgurl = file.url;   // 删除的数据</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >         const findThisNum = that.picurllist.findIndex(x =&gt; x === imgurl )</span></span>
<span class="cstat-no" title="statement not covered" >         console.log(imgurl)</span>
<span class="cstat-no" title="statement not covered" >         that.picurllist.splice(findThisNum, 1)</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >          that.deleteimg(imgurl);</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >          return new Promise((resolve, reject) =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >            console.log("删除文件的回调,afterDelete");</span>
<span class="cstat-no" title="statement not covered" >            this.isloadImg = false;</span>
<span class="cstat-no" title="statement not covered" >            resolve();</span>
          });
      },
&nbsp;
	}
}
&lt;/script&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 27 2023 23:16:11 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\sorter.js"></script>
</body>
</html>
